/**
 * 封装唯一标识码
 */
import { v4 as uuidv4 } from 'uuid'

export function getUserTempId() {
  const userTempId = localStorage.getItem('userTempId')
  if (userTempId) {
    return userTempId
  } else {
    const newuserTempId = uuidv4()
    localStorage.setItem('userTempId', newuserTempId)
    return newuserTempId
  }
}
 